/*
Explodes a string
arg  | type  | comment
arg0: string  data to explode
arg1: string  spliter to split at
arg2: string  global array to put in
*/
var data,split,spl_pos,array,num,element;
data=argument0+argument1;//data to explode
split=argument1;//spliter in the data
array=argument2;//array name
num=0;//array numbering setup
spl_pos = string_pos(split,data) - 1
while (spl_pos != -1)
      {
      element = string_copy(data,1,spl_pos)
      variable_local_array_set(array,num,element)
      data = string_delete(data,1,spl_pos+1)
      num+=1
      spl_pos = string_pos(split,data) - 1
      }      
return num;
